;; Note: setting result to t means we are done and will return nil.
;;(This function never returns just t.)
(cond
- ((and (boundp 'font-lock-string-face)
- (equal (get-text-property (point) 'face) font-lock-string-face))
+ ((or (and (boundp 'font-lock-string-face)
+ (eq (get-text-property (point) 'face) font-lock-string-face))
+ (eq (get-text-property (point) 'face) sh-heredoc-face))
(setq result t)
(setq have-result t))
((looking-at "\\s-*#") ; was (equal this-kw "#")
(forward-comment (- (point-max)))
(unless end (beginning-of-line))
(when (and (not (bobp))
- (boundp 'font-lock-string-face)
(equal (get-text-property (1- (point)) 'face)
- font-lock-string-face))
+ sh-heredoc-face))
(let ((p1 (previous-single-property-change (1- (point)) 'face)))
(when p1
(goto-char p1)
4 " ( "
6 " )"
15 '<
- 16 "end"
- )
+ 16 "end")
(es eval sh-modify rc
4 " = ")
(rc eval sh-modify sh
3 "while( "
5 " )"
10 '<
- 11 "end" )
+ 11 "end")
(es eval sh-modify sh
3 "while { "
5 " } {"